package com.lez.flowpractice2.viewmodel

import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow

class NumberViewModel() : ViewModel() {

    var numberStateFlow = MutableStateFlow(0)

    fun increment(){
        numberStateFlow.value++
    }

    fun decrement(){
        numberStateFlow.value--
    }

}